
<html>
<head>
<script src="test.js" type="text/javascript" charset="utf-8"></script>

<title>Testing</title>
<script language="Javascript"> 

var ind = 0;

function Change() {

   var head1 = document.getElementById("head1");
   var body1 = document.getElementById("body1");
   var div1 = document.getElementById("div1_1");
   
   head1.firstChild.nodeValue=events.bwEventList.events[ind].summary;
   body1.firstChild.nodeValue=events.bwEventList.events[ind].start.longdate;
   div1.firstChild.nodeValue=events.bwEventList.events[ind].categories[0];
   
   ind++;
}
</script>
</head>
<body>

<div ID="div1">

Event:<h1 ID="head1"> </h1>

Date:<h2 ID="body1"> </h2>

Category:<div ID="div1_1"> </div>

<script language="Javascript">
	Change();
</script>

<form name="form">
<input type="button" value="Change!"
  onClick="Change();">
</form>

</div>


</body>
</html>
